/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.service.login;

import edu.uwm.universitydb.dao.role.FetchUserRoleCommand;
import edu.uwm.universitydb.framework.exception.DataAccessException;
import edu.uwm.universitydb.model.User;

/**
 * Implementation of Login Service
 * 
 * @author Shyam Nair
 */
public class LoginServiceImpl implements LoginService
{

    /*
     * (non-javadoc)
     * @see edu.uwm.cs757.service.login.LoginService#login(java.lang.String, java.lang.String)
     */
    @Override
    public User login(final String userName, final String password) throws DataAccessException
    {
        final FetchUserRoleCommand fecthCommand = new FetchUserRoleCommand(userName);
        final User user = fecthCommand.executeCommand();
        return user;
    }

}
/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 9, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */